package com.lagou.myblog.domain;

import java.io.Serializable;

/**
 * 用于easyUI分页显示
 */
public class EasyUIBean implements Serializable {
    private Long total; //查询总条数
    private Object rows; //返回数据 rows.length <= total

    private EasyUIBean(Long total, Object rows) {
        this.total = total;
        this.rows = rows;
    }

    public static EasyUIBean build(Long total, Object rows) {
        return new EasyUIBean(total, rows);
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Object getRows() {
        return rows;
    }

    public void setRows(Object rows) {
        this.rows = rows;
    }

}
